package g_proxy.c_protection;

/**
 * Created by wug on 2016/7/5 0005.
 */
public class HeroServiceImpl extends Hero implements HeroService  {

    public HeroServiceImpl(String name) {
        super.name = name;
    }

    @Override
    public void attacked(int attackForce) {
        super.blood -= attackForce;
    }

    @Override
    public void equipment(Equipment equipment) {
        super.blood += equipment.getBlood();
        super.attackForce += equipment.getAttrack();
    }

    public int getBlood() {
        return blood;
    }

    public int getAttackForce() {
        return attackForce;
    }

    public String getName() {
        return name;
    }
}
